package com.twu.bibilioteca;

import junit.framework.TestCase;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/20/14
 * Time: 3:13 PM
 * To change this template use File | Settings | File Templates.
 */
public class UserTest {
    User user = new User("dixith" , "dixithk@tw.com", "305-3051","password" , "8179977996");
    @Test
    public void shouldGiveNameOfTheUser()
    {
      assertEquals("dixith", user.getName());
    }

    @Test
    public void shouldGiveEmailIdOfTheUser()
    {
        assertEquals("dixithk@tw.com", user.getEmail());
    }

    @Test
    public void shouldGiveLoginIdOfTheUser()
    {
        assertEquals("305-3051", user.getLogin());
    }

    @Test
    public void shouldGivePasswordOfTheUser()
    {
        assertEquals("password", user.getPassword());
    }
    @Test
    public void shouldGivePhoneNumberOfTheUser()
    {
        assertEquals("8179977996", user.getPhoneNumber());
    }



}
